<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();
class Usertype extends CI_Controller {
	private static $model_name = 'usertype_model';
	function __construct()
	{
		parent::__construct();
		$this->load->library("soap");
		$this->load->library('session');
		$this->load->helper('url');
		$this->load->library('pagination');
		$this->load->helper(array('form', 'url'));  
		$this->load->helper('recaptcha_helper');
		$this->load->helper("text");
		@session_start();
	}
	public function listusertype(){
		if($this->session->userdata('adminnam') == null){
			redirect('user/login');
		}else{
			$this->load->model('usertype_model');
			$data['list_user_type'] = $this->usertype_model->get_all();
			$this->load->view('appstore/admin/dashboard',$data);
		}
	}
	public function addusertype() {
		echo 'addusertype';	
	}
	public function editusertype($id) {
		echo 'edit usertype id = '.$id;
	}
	
}